package com.example.providerdemo.demos.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther: 王振方
 * @date: 2023 12 26 15 12
 * @description:
 */
@RestController
public class HelloController {

    @Value("${provider.name}")
    private String name;

    @RequestMapping("/hello")
    public String hello(){
        return "hello baby! I am "+ name;
    }


}
